from django.urls import path  # 从 django.urls 导入 path
from . import views
from chat.views import room  # 从 chat.views 导入 room

app_name = 'goods' 
urlpatterns = [
    path('', views.index, name='index'),  # 首页
    path('books_list/', views.books_list, name='books_list'),
    path('digital_list/', views.digital_list, name='digital_list'),
    path('cloth_list/', views.cloth_list, name='cloth_list'),
    path('traffic_list/', views.traffic_list, name='traffic_list'),
    path('daily_list/', views.daily_list, name='daily_list'),
    path('other_list/', views.other_list, name='other_list'),
    path('release_goods/', views.release_goods, name='release_goods'),
    path('release/', views.release, name='release'),
    path('goods_details/<int:good_id>/', views.goods_details, name='goods_details'),
    # 其他路径...
    path('after_search/', views.after_search, name='after_search'),
    path('goods_details/', views.good_details_by_title, name='goods_details_by_title'),  # 新增的路径
    # path('delete_goods/', views.delete_goods, name='delete_goods'),
    # path('chat/<int:good_id>/', room, name='chat_room'),  # 新增的路由
    path('user/admin_logon/',views.admin_logon,name='admin_logon'),
    path('user/admin_logon_ck/',views.admin_logon_ck,name='admin_logon_ck'),
    path('user/admin_delg/',views.admin_delg,name='admin_delg'),
]

